#pragma once
#ifndef xMemTerrain_h__
#define xMemTerrain_h__

#include "../../../dxhead/dxegheader.h"
#include "../../../xlib/xlib.h"
#include "../../tools/tools.h"
#include "xTerrainSwitch.h"
#include "../inc/xThread.h"

namespace Sky
{
#define BLOCK_SIZE 256
	class xMemTerrain
	{
	public:
		typedef TFloat (*TPatch)[BLOCK_SIZE];
		TPatch* GetPatch(TInt x,TInt z);
	private:
		TFloat _data[BLOCK_SIZE][BLOCK_SIZE];
		TInt8 _ox_block;
		TInt8 _oz_block;
		TInt  _level;
	};
	class xAdptTerrain
	{

	};
};
#endif // xMemTerrain_h__